﻿using System.Collections.Generic;

namespace Protocol
{
    public class RequestLogin : NetworkMessage
    {
        public override Command Command => Command.RequestLogin;

        public string Account { get; set; }
        public string Password { get; set; }
        
    }

    public class NotifyRoleDatas : NetworkMessage
    {
        public override Command Command => Command.NotifyRoleDatas;

        public List<RoleData> RoleDatas { get; set; }
    }

    [System.Serializable]
    public class RoleData
    {
        public int Uid { get; set; }
        public string NickName { get; set; }

        // 世界ID
        public ulong MapID { get; set; }
        // 副本ID
        public ulong RaidID { get; set; }

        // 位置信息
        public float PositionX { get; set; }
        public float PositionZ { get; set; }
        public float DirectionX { get; set; }
        public float DirectionZ { get; set; }

        #region 角色成长数值

        // 角色类型
        public int UnitID { get; set; }
        // 角色等级
        public int Level { get; set; }
        // 经验值
        public int Experience { get; set; }

        #endregion
    }
}